package com.jeecms.wicool.manager.groupBuy.impl;

import com.jeecms.common.hibernate3.Updater;
import com.jeecms.wicool.dao.groupBuy.GroupBuySpecificationDao;
import com.jeecms.wicool.entity.groupBuy.GroupBuySpecification;
import com.jeecms.wicool.manager.groupBuy.GroupBuySpecificationMng;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by cuiyanlei on 15/6/10.
 */
@Service
@Transactional
public class GroupBuySpecificationMngImpl implements GroupBuySpecificationMng{
    @Override
    public GroupBuySpecification save(GroupBuySpecification bean) {
        return dao.save(bean);
    }

    @Override
    public GroupBuySpecification deleteById(Integer id) {
        return dao.deleteById(id);
    }

    @Override
    public GroupBuySpecification updateByUpdater(Updater<GroupBuySpecification> updater) {
        return dao.updateByUpdater(updater);
    }

    @Override
    public GroupBuySpecification findById(Integer id) {
        return null;
    }

    @Override
    public List<GroupBuySpecification> getAll(Integer foreignId) {
        return dao.getAll(foreignId);
    }

    @Autowired
    private GroupBuySpecificationDao dao;
}
